package com.api.syh56.shengyunhui.service;

import com.api.syh56.shengyunhui.entity.Waybill;
import com.api.syh56.shengyunhui.entity.vo.WAGParamVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface WayBillService extends IService<Waybill> {



    Waybill addWaybill(Waybill waybill);

    Waybill selectById(Long id);

    void deleteWaybill(Long id);

    void adminCancelWaybill(Long id);

    void shipCancelWaybill(Long id);

    Map<String, String> shiperSettleWaybill(String code, Long waybillId, Long quoteId, String priceType, String platform);

    WAGParamVO showOneInfo(Long id);

    WAGParamVO convertToWAGParamVO(Long id);

    String getWaybillNum();

    Map<String,List<WAGParamVO>> waybillRecentList(String yearmonth, Short status, Short role);

    Page<WAGParamVO> waybillRecentPage(Page page, Short status, Short role);

    Page<WAGParamVO> waybillPageToWAGParamVOPage(Page<Waybill> waybillPage);

    void driverPushStatus(Waybill waybill, Short deliveryStatus);

    Map<String, Object> waybillCarSearch(Waybill waybill);

}
